#coding:utf-8
import database
import web
import public

class main():
    def __init__(self):
        self.db=database.database()

    @public.catch_exception
    @public.check_login
    def GET(self):
        user_input=web.input()
        id=user_input['id'].strip()
        if id:
            id=int(id)
            self.db.execute(r"DELETE FROM servicer WHERE id=%s"%(id))
            self.db.commit()
        web.seeother('/')